/**
 * Created by sunleqing2019-12-25.
 */

import i18n from '../lang/index.js';
/**
 * 路径-行驶朝向-类型
 */
export const PATH_HEADING_TYPES = {
    FORWARD: 'FORWARD',
    BACKWARD: 'BACKWARD',
    FIXED: 'FIXED',
    LINEAR: 'LINEAR',
    '?': '?'
};
export const PAINTER_ACTIONS = {
    NONE: 'NONE',
    REVERSE: 'REVERSE',
    MOVE: 'MOVE',
    MIRRORX: 'MIRROR X',
    MIRRORY: 'MIRROR Y'
};
export const PAINTER_ACTIONS_OPTIONS = [
    {
        value: PAINTER_ACTIONS.NONE,
        label: i18n.global.t('lang.none')
    },
    {
        value: PAINTER_ACTIONS.REVERSE,
        label: i18n.global.t('lang.reverse')
    },
    {
        value: PAINTER_ACTIONS.MOVE,
        label: i18n.global.t('lang.move')
    },
    {
        value: PAINTER_ACTIONS.MIRRORX,
        label: i18n.global.t('lang.mirrorX')
    },
    {
        value: PAINTER_ACTIONS.MIRRORY,
        label: i18n.global.t('lang.mirrorY')
    }
];
/**
 * 图形-图层
 */
export const CONTOUR_LAYERS = [0, 1, 2, 3, '?'];
export const RANGE_LAYERS = [0, 1, 2, 3, '?'];

export const JOB_STATUS = {
    ASSIGNED: 'ASSIGNED',
    SCHEDULED: 'SCHEDULED',
    NO_ROUTE: 'NO_ROUTE',
    NO_VEHICLE: 'NO_VEHICLE',
    DELAYED: 'DELAYED',
    DEFERRED: 'DEFERRED',
    COMPLETED: 'COMPLETED'
};
export const JOB_END_EVENTS = { REMOVE: 'REMOVE', RESTART: 'RESTART', ARCHIVE: 'ARCHIVE' };
export const JOB_MODES = { ASAP: 'ASAP', FIXED: 'FIXED' };
export const JOB_ACTIONS = { ASAP: 'ASAP', FIXED: 'FIXED' };
export const STATUS_COLORS = { GRAY: 'gray', GREEN: 'green', YELLOW: 'yellow', RED: 'red' };

export const USER_ROLES = { CUSTOM: 'CUSTOM', VIEW: 'VIEW', WORK: 'WORK', CONFIG: 'CONFIG', ADMIN: 'ADMIN' };

export const MODEL_LENGTH = { 1: 1, 8: 8, 16: 16, 32: 32, 64: 64 };
export const MODEL_COLORS = {
    AUTO: 'auto',
    RED: 'red',
    YELLOW: 'yellow',
    GREEN: 'green',
    BLUE: 'blue',
    ORANGE: 'orange',
    PURPLE: 'purple'
};

export const HTTP_METHODS = { GET: 'GET', POST: 'POST', PUT: 'PUT', DELETE: 'DELETE', WS: 'WS' };
export const SCRIPT_TYPES = { SERVER: 'SERVER', INPUT: 'INPUT', OUTPUT: 'OUTPUT', CUSTOM: 'CUSTOM', UPDATE: 'UPDATE' };
export const EVENT_TYPES = { SINGLE: 'SINGLE', WORK: 'WORK', BREAK: 'BREAK' };
export const EVENT_TRIGGERS = { START: 'START', STOP: 'STOP' };

export const PATH_SIGNS = {
    CLOSURE: 'closure',
    CONDITION: 'condition',
    RELATIVESPEED: 'relativeSpeed',
    STOP: 'stop',
    SPOTTURN: 'spotTurn',
    PROHIBITION: 'prohibition',
    PERMISSION: 'permission',
    BRIDGE: 'bridge'
};

export const LOG_LEVELS = { INFO: 'INFO', FINE: 'FINE', FINER: 'FINER', FINEST: 'FINEST' };
export const VEHICLE_TYPES = {
    DRIVER: 'DRIVER',
    FOLLOWER: 'FOLLOWER',
    PUPPET: 'PUPPET'
};

export const INSTALL_LOCATION_OPTIONS = [
    {
        value: 'top',
        label: i18n.global.t('lang.top')
    },
    {
        value: 'leftTop',
        label: i18n.global.t('lang.leftTop')
    },
    {
        value: 'rightTop',
        label: i18n.global.t('lang.rightTop')
    },
    {
        value: 'leftBottom',
        label: i18n.global.t('lang.leftBottom')
    },
    {
        value: 'rightBottom',
        label: i18n.global.t('lang.rightBottom')
    },
    {
        value: 'front',
        label: i18n.global.t('lang.front')
    },
    {
        value: 'back',
        label: i18n.global.t('lang.back')
    }
];
